[Java] Form data transition into entity beans to persist them by the server side ORM
Posted
by cscsaba242
on Stack Overflow
See other posts from Stack Overflow
or by cscsaba242
Published on 2010-04-18T19:21:00Z
Indexed on
2010/04/18
19:23 UTC
Read the original article
Hit count: 385
Hello guys,
Is there any good explanation or tutorial which describes the common way how can we create entity beans from the received data of the form ? The main reason of my question the treating the received ids (e.g id of country,city and so forth) which is the way from the id to entity ?
Example:
................Client side form username:String countryid:Integer (could be a drop down) ................Server side entities public class UserBean { String username; CountryBean Country; } public class CountryBean { String cityname; Integer id; }
............................................
Maybe the question is dependent of the used technology, but I guess there is a very common way. I would like to comprehend the conventional approach of this problem. (For the sake of the completeness I would like to save the form data (received by Stripes) by JPA)
Thanks advance.
cscsaba242
© Stack Overflow or respective owner